package com.kb.order.service.impl;

import com.kb.order.pojo.OrderFood;
import com.kb.order.service.IOrderFoodService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

import com.kb.order.dao.OrderFoodDao;

@Service
public class OrderFoodService implements IOrderFoodService {

    @Resource
    private OrderFoodDao orderFoodDao;

    public int insert(OrderFood pojo){
        return orderFoodDao.insert(pojo);
    }

    public int insertList(List< OrderFood> pojos){
        return orderFoodDao.insertList(pojos);
    }

    public List<OrderFood> select(OrderFood pojo){
        return orderFoodDao.select(pojo);
    }

    public int update(OrderFood pojo){
        return orderFoodDao.update(pojo);
    }

}
